<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h1>hello 这是自己的服务页面4334523523525</h1>
  <button id='btn'>++</button>
  <button id='btn2'>++</button>
  <button id='btn3'> btn3 </button>
  <button id='btn4'> btn4 </button>
</body>

</html>
<script>
  btn4.onclick = function () {
    fetch('http://localhost:3000/qq')
  }
  btn3.onclick = function () {
    fetch(
      "/ajax/movieOnInfoList?token=&optimus_uuid=AA1A4E605EBE11EB81B27DDD4D787814E325A6C0C40A4CF9B19BE0477E7B791B&optimus_risk_level=71&optimus_code=10"
    )
  }
  let btn = document.querySelector('#btn')
  btn.onclick = function () {
    fetch('/list', {
      method: 'post',
      body: 'qq=123&ee=888',
      headers: {
        "content-type": "application/x-www-form-urlencoded"
      }
    }).then(res => res.json()).then(data => {
      console.log(data)
    })
  }
  btn2.onclick = function () {
    fetch('/list', {
      method: 'post',
      body: JSON.stringify({
        a: 123,
        b: 345
      }),
      headers: {
        "content-type": "application/json"
      }
    }).then(res => res.json()).then(data => {
      console.log(data)
    })
  }
</script>